package com.charm.bulkcomponent

import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.app.AppCompatActivity
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter

/**
 * Created by tools on 2018/1/16.
 */
@Route(path = "/common/main/single")
class SingleMainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_single_main)
        var fragment = ARouter.getInstance().build("/information/main").navigation() as Fragment
        supportFragmentManager.beginTransaction().replace(R.id.container, fragment).commit()
    }
}